var e = require("CryptoJS.js"), r = (require("base64.js"), e.enc.Utf8.parse("IrAkFh2DsacfgFcG")), t = e.enc.Utf8.parse("vFdZOh2SIendLNsF");

module.exports = {
    Encrypt: function(n) {
        var c = e.enc.Utf8.parse(n);
        return e.AES.encrypt(c, r, {
            iv: t,
            mode: e.mode.CBC,
            padding: e.pad.Pkcs7
        }).ciphertext.toString().toUpperCase();
    },
    Decrypt: function(n) {
        var c = e.enc.Hex.parse(n), p = e.enc.Base64.stringify(c);
        return e.AES.decrypt(p, r, {
            iv: t,
            mode: e.mode.CBC,
            padding: e.pad.Pkcs7
        }).toString(e.enc.Utf8).toString();
    }
};